import  {staticRoutes,resetRouter} from '@/router'
export  default {
  namespaced: true,
  state: {
    menuList: []
  },
  mutations: {
    setMenuList(state, menuList) {
      state.menuList = [...staticRoutes,...menuList]
    },
    resetMenu(state) {
      // 重置菜单
      state.menuList = []
      // 重置路由
      resetRouter()
    }
  }

}

